﻿#include<iostream>
using namespace std;

int& ref() {
	static int x;
	return x;
}

int main() {
	ref() = 5;
	cout << "ref() = " << ref() << '\n';
	cin.get();
}